package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 设备入库图片表
 */
@Data
@Accessors(chain = true)
@TableName(value = "inbound_pic")
public class InboundPic {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备图片
     */
    @TableField(value = "device_pic")
    private String devicePic;

    /**
     * 创建用户id
     */
    @TableField(value = "creat_by")
    private Integer creatBy;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 更新用户id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 逻辑删除
     */
    @TableField(value = "`enable`")
    private Boolean enable;
    /**
     * 新增设备id，不再使用device_inbound_pic表
     */
    @TableField(value = "device_id")
    private Integer deviceId;
}